package com.tencreat.domain.pt.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author huang wei
 * @version 1.0
 * @date 2021/12/24 20:04
 */
@Data
public class ResPtPeriodsVo implements Serializable {

    @ApiModelProperty("拼团id")
    private Long id;

    @ApiModelProperty(value = "期数")
    private Integer periods;

    @ApiModelProperty("拼团编号")
    private String ptSn;

    @NotNull(message = "下期截止参与时间不能为空")
    @ApiModelProperty("下期截止参与时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @NotNull(message = "开奖时间不能为空")
    @ApiModelProperty("开奖时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lotteryTime;
}
